<{include file="Public/top.html" }>
</head>
<body>
    <div id="warpper">
        <div class="content">
            <div class="location">商户管理</div>
            <{include file= "Business/nav.html"}>
            <div class="filedSet" style="padding-bottom: 0;">
                <div class="search">
                    <form action="<{U('Business/search')}>" method="get" id="searchForm" class="ui-form reportForm">

                        <input name="m" type="hidden" value="<{$module}>">
                        <input name="c" type="hidden" value="<{$controller}>">
                        <input name="a" type="hidden" value="search">
                        <input name="action" type="hidden" value="restaurantList">
                        <input name="p" id="page" type="hidden" value="<{$page|default:1}>">

                        <div class="ui-form-item inline-block">
                            <label class="ui-label">商户搜索</label>
                            <input type="text" class="ui-text bg-text keyword" placeholder="" />
                        </div>
                        <div class="ui-form-item inline-block">
                            <button type="button" class="ui-button">查询</button>
                            <a href="<{U('restaurantAdd')}>" class="ui-button">添加商户</a>
                        </div>
                    </form>
                </div>
            </div>
            <!--表头-->
            <table class="ui-table ui-head">
                <thead>
                <tr>
                    <th class="pct10">ID</th>
                    <th class="pct15">商户名</th>
                    <th class="pct20">门店数量</th>
                    <th class="pct10">核销员数量</th>
                    <th class="pct10">卡券种类</th>
                    <th class="pct10">发放卡券数量</th>
                    <th class="pct10">核销数量</th>
                    <th class="pct10">核销率</th>
                    <th class="pct20 last-col">操作</th>
                </tr>
                </thead>
            </table>

            <!--表格内容-->
            <div class="mainGrid">
                <table class="ui-table ui-body">
                    <thead>
                    <tr>
                        <th class="pct10"</tr>
                        <th class="pct15"></th>
                        <th class="pct20"></th>
                        <th class="pct10"></th>
                        <th class="pct10"></th>
                        <th class="pct10"></th>
                        <th class="pct10"></th>
                        <th class="pct10"></th>
                        <th class="pct20 last-col"></th>
                    </tr>
                    </thead>
                    <tbody>
                    <{foreach from = $list item = item}>
                    <tr>
                        <td><{$item.id}></td>
                        <td><{$item.restaurantName}></td>
                        <td>4</td>
                        <td>4</td>
                        <td>折扣券</td>
                        <td>400</td>
                        <td>200</td>
                        <td>50%</td>
                        <td class="ta_l">
                            <div class="handler">
                                <a href="<{u('restaurantEdit/?id='|cat:$item['id'])}>">修改信息</a>
                                <span class="sep">|</span>
                                <a href="<{u('storeAdd/?id='|cat:$item['id'])}>">添加门店</a>
                                <span class="sep">|</span>
                                <{if $item.status == $smarty.const.ENABLE_ENABLE}>
                                <a href="<{u('restaurantUpdate/?id='|cat:$item['id'])}>" onclick="if(!confirm('确定不启用该商户么？'))return false;">已启用</a>
                                <{else}>
                                <a href="<{u('restaurantUpdate/?id='|cat:$item['id'])}>" onclick="if(!confirm('确定启用该商户么？'))return false;">未启用</a>
                                <{/if}>
                            </div>
                        </td>
                    </tr>
                    <{/foreach}>
                    </tbody>
                </table>
            </div>
            <!--描述：分页-->
            <div class="pagination">
                <{include file="Public/page.html"}>
            </div>
        </div>
    </div>
</body>
<{include file="Public/foot.html" }>